<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
  Module: Ram
  
    &mdash; Jammit
  
</title>

  <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />

  <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '';
  if (relpath != '') relpath += '/';
</script>

  <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>

  <script type="text/javascript" charset="utf-8" src="js/app.js"></script>


  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html">Index (R)</a> &raquo; 
    
    
    <span class="title">Ram</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  
    <a id="class_list_link" href="#">Class List</a>
  
    <a id="method_list_link" href="#">Method List</a>
  
    <a id="file_list_link" href="#">File List</a>
  
</div>
      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Module: Ram
  
  
  
</h1>

<dl class="box">
  
  
    
  
    
  
  
  
    <dt class="r1 last">Defined in:</dt>
    <dd class="r1 last">lib/jammit.rb<span class="defines">,<br />
  lib/jammit/helper.rb,<br /> lib/jammit/packager.rb,<br /> lib/jammit/compressor.rb,<br /> lib/jammit/command_line.rb</span>
</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p><code>Ram</code> is the central namespace for all Ram classes, and provides access
to all of the configuration options.</p>

  </div>
</div>
<div class="tags">
  

</div><h2>Defined Under Namespace</h2>
<p class="children">
   
    
      <strong class="modules">Modules:</strong> <span class='object_link'><a href="Ram/Helper.html" title="Ram::Helper (module)">Helper</a></span>
    
   
    
      <strong class="classes">Classes:</strong> <span class='object_link'><a href="Ram/CommandLine.html" title="Ram::CommandLine (class)">CommandLine</a></span>, <span class='object_link'><a href="Ram/Compressor.html" title="Ram::Compressor (class)">Compressor</a></span>, <span class='object_link'><a href="Ram/DeprecationError.html" title="Ram::DeprecationError (class)">DeprecationError</a></span>, <span class='object_link'><a href="Ram/MissingConfiguration.html" title="Ram::MissingConfiguration (class)">MissingConfiguration</a></span>, <span class='object_link'><a href="Ram/OutputNotWritable.html" title="Ram::OutputNotWritable (class)">OutputNotWritable</a></span>, <span class='object_link'><a href="Ram/PackageNotFound.html" title="Ram::PackageNotFound (class)">PackageNotFound</a></span>, <span class='object_link'><a href="Ram/Packager.html" title="Ram::Packager (class)">Packager</a></span>, <span class='object_link'><a href="Ram/Uglifier.html" title="Ram::Uglifier (class)">Uglifier</a></span>
    
  
</p>

  <h2>Constant Summary</h2>
  
    <dl class="constants">
      
        <dt id="VERSION-constant" class="">VERSION =
          
        </dt>
        <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.6.3</span><span class='tstring_end'>&quot;</span></span></pre></dd>
      
        <dt id="ROOT-constant" class="">ROOT =
          
        </dt>
        <dd><pre class="code"><span class='const'>File</span><span class='period'>.</span><span class='id expand_path'>expand_path</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/..</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre></dd>
      
        <dt id="ASSET_ROOT-constant" class="">ASSET_ROOT =
          
        </dt>
        <dd><pre class="code"><span class='const'>File</span><span class='period'>.</span><span class='id expand_path'>expand_path</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>Rails</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='const'>Rails</span><span class='period'>.</span><span class='id root'>root</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='period'>.</span><span class='id length'>length</span> <span class='op'>&gt;</span> <span class='int'>0</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='const'>Rails</span><span class='period'>.</span><span class='id root'>root</span> <span class='op'>:</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RAILS_ROOT</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span></pre></dd>
      
        <dt id="DEFAULT_PUBLIC_ROOT-constant" class="">DEFAULT_PUBLIC_ROOT =
          
        </dt>
        <dd><pre class="code">(Rails) &amp;&amp; Rails.public_path.to_s.length &gt; 0) ? Rails.public_path : File.join(ASSET_ROOT, 'public')</pre></dd>
      
        <dt id="DEFAULT_CONFIG_PATH-constant" class="">DEFAULT_CONFIG_PATH =
          
        </dt>
        <dd><pre class="code"><span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='const'>ASSET_ROOT</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>config</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>assets.yml</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre></dd>
      
        <dt id="DEFAULT_PACKAGE_PATH-constant" class="">DEFAULT_PACKAGE_PATH =
          
        </dt>
        <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>assets</span><span class='tstring_end'>&quot;</span></span></pre></dd>
      
        <dt id="DEFAULT_JST_SCRIPT-constant" class="">DEFAULT_JST_SCRIPT =
          
        </dt>
        <dd><pre class="code"><span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='const'>ROOT</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>lib/ram/jst.js</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre></dd>
      
        <dt id="DEFAULT_JST_COMPILER-constant" class="">DEFAULT_JST_COMPILER =
          
        </dt>
        <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>template</span><span class='tstring_end'>&quot;</span></span></pre></dd>
      
        <dt id="DEFAULT_JST_NAMESPACE-constant" class="">DEFAULT_JST_NAMESPACE =
          
        </dt>
        <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>window.JST</span><span class='tstring_end'>&quot;</span></span></pre></dd>
      
        <dt id="COMPRESSORS-constant" class="">COMPRESSORS =
          
        </dt>
        <dd><pre class="code"><span class='lbracket'>[</span><span class='symbol'>:yui</span><span class='comma'>,</span> <span class='symbol'>:closure</span><span class='comma'>,</span> <span class='symbol'>:uglifier</span><span class='rbracket'>]</span></pre></dd>
      
        <dt id="DEFAULT_COMPRESSOR-constant" class="">DEFAULT_COMPRESSOR =
          
        </dt>
        <dd><pre class="code"><span class='symbol'>:yui</span></pre></dd>
      
        <dt id="JS_EXTENSION-constant" class="">JS_EXTENSION =
          <div class="docstring">
  <div class="discussion">
    <p>Extension matchers for JavaScript and <span class="caps">JST</span>, which need to be disambiguated.</p>

  </div>
</div>
<div class="tags">
  

</div>
        </dt>
        <dd><pre class="code"><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\.js\Z</span><span class='regexp_end'>/</span></span></pre></dd>
      
        <dt id="DEFAULT_JST_EXTENSION-constant" class="">DEFAULT_JST_EXTENSION =
          
        </dt>
        <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>jst</span><span class='tstring_end'>&quot;</span></span></pre></dd>
      
    </dl>
  


  <h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#allow_debugging-class_method" title="allow_debugging (class method)">+ (Object) <strong>allow_debugging</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute allow_debugging.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#compress_assets-class_method" title="compress_assets (class method)">+ (Object) <strong>compress_assets</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute compress_assets.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#compressor_options-class_method" title="compressor_options (class method)">+ (Object) <strong>compressor_options</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute compressor_options.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#compressors-class_method" title="compressors (class method)">+ (Object) <strong>compressors</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute compressors.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#config_path-class_method" title="config_path (class method)">+ (Object) <strong>config_path</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute config_path.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#configuration-class_method" title="configuration (class method)">+ (Object) <strong>configuration</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute configuration.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#css_compressor_options-class_method" title="css_compressor_options (class method)">+ (Object) <strong>css_compressor_options</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute css_compressor_options.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#embed_assets-class_method" title="embed_assets (class method)">+ (Object) <strong>embed_assets</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute embed_assets.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#gzip_assets-class_method" title="gzip_assets (class method)">+ (Object) <strong>gzip_assets</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute gzip_assets.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#include_jst_script-class_method" title="include_jst_script (class method)">+ (Object) <strong>include_jst_script</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute include_jst_script.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#javascript_compressor-class_method" title="javascript_compressor (class method)">+ (Object) <strong>javascript_compressor</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute javascript_compressor.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#mhtml_enabled-class_method" title="mhtml_enabled (class method)">+ (Object) <strong>mhtml_enabled</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute mhtml_enabled.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#package_assets-class_method" title="package_assets (class method)">+ (Object) <strong>package_assets</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute package_assets.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#package_path-class_method" title="package_path (class method)">+ (Object) <strong>package_path</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute package_path.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#public_root-class_method" title="public_root (class method)">+ (Object) <strong>public_root</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute public_root.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#template_extension-class_method" title="template_extension (class method)">+ (Object) <strong>template_extension</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute template_extension.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#template_extension_matcher-class_method" title="template_extension_matcher (class method)">+ (Object) <strong>template_extension_matcher</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute template_extension_matcher.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#template_function-class_method" title="template_function (class method)">+ (Object) <strong>template_function</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute template_function.</p></div></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#template_namespace-class_method" title="template_namespace (class method)">+ (Object) <strong>template_namespace</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Returns the value of attribute template_namespace.</p></div></span>
  
</li>

    
  </ul>




  
    <h2>
      Class Method Summary
      <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
    </h2>

    <ul class="summary">
      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#asset_url-class_method" title="asset_url (class method)">+ (Object) <strong>asset_url</strong>(package, extension, suffix = nil, mtime = nil) </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Generates the server-absolute <span class="caps">URL</span> to an asset package.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#check_for_deprecations-class_method" title="check_for_deprecations (class method)">+ (Object) <strong>check_for_deprecations</strong> </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Ram 0.5+ no longer supports separate template packages.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#check_java_version-class_method" title="check_java_version (class method)">+ (Object) <strong>check_java_version</strong> </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>The <span class="caps">YUI</span> Compressor requires Java &gt; 1.4, and Closure requires Java &gt; 1.6.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#disable_compression-class_method" title="disable_compression (class method)">+ (Object) <strong>disable_compression</strong> </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>If we don&#8217;t have a working Java VM, then disable asset compression and
complain loudly.</p></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#filename-class_method" title="filename (class method)">+ (Object) <strong>filename</strong>(package, extension, suffix = nil) </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Generate the base filename for a version of a given package.</p></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#load_configuration-class_method" title="load_configuration (class method)">+ (Object) <strong>load_configuration</strong>(config_path, soft = false) </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Load the complete asset configuration from the specified <code>config_path</code>.</p></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#package%21-class_method" title="package! (class method)">+ (Object) <strong>package!</strong>(options = {}) </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Convenience method for packaging up Ram, using the default options.</p></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#packager-class_method" title="packager (class method)">+ (Object) <strong>packager</strong> </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Keep a global (thread-local) reference to a <code>Ram::Packager</code>, to avoid
recomputing asset lists unnecessarily.</p></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#reload%21-class_method" title="reload! (class method)">+ (Object) <strong>reload!</strong> </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Force a reload by resetting the Packager and reloading the configuration.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#set_javascript_compressor-class_method" title="set_javascript_compressor (class method)">+ (Object) <strong>set_javascript_compressor</strong>(value) </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Ensure that the JavaScript compressor is a valid choice.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#set_package_assets-class_method" title="set_package_assets (class method)">+ (Object) <strong>set_package_assets</strong>(value) </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Turn asset packaging on or off, depending on configuration and environment.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#set_public_root-class_method" title="set_public_root (class method)">+ (Object) <strong>set_public_root</strong>(public_root = nil) </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Allows command-line definition of `PUBLIC_ROOT`, for those using Ram
outside of Rails.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#set_template_extension-class_method" title="set_template_extension (class method)">+ (Object) <strong>set_template_extension</strong>(value) </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Set the extension for JS templates.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#set_template_function-class_method" title="set_template_function (class method)">+ (Object) <strong>set_template_function</strong>(value) </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Assign the <span class="caps">JST</span> template function, unless explicitly turned off.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#set_template_namespace-class_method" title="set_template_namespace (class method)">+ (Object) <strong>set_template_namespace</strong>(value) </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Set the root JS object in which to stash all compiled <span class="caps">JST</span>.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#symbolize_keys-class_method" title="symbolize_keys (class method)">+ (Object) <strong>symbolize_keys</strong>(hash) </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>Clone of active_support&#8217;s symbolize_keys, so that we don&#8217;t have to depend
on active_support in any fashion.</p></div></span>
  
</li>

      
        <li class="private ">
  <span class="summary_signature">
    
      <a href="#warn-class_method" title="warn (class method)">+ (Object) <strong>warn</strong>(message) </a>
    

    
  </span>
  
  
  <span class="note title private">private</span>
  
  
  

  
    <span class="summary_desc"><div class='inline'></div></span>
  
</li>

      
    </ul>
  


  <div id="class_attr_details" class="attr_details">
    <h2>Class Attribute Details</h2>
    
      
      <span id=""></span>
      <span id="allow_debugging-class_method"></span>
      <div class="method_details first">
  <p class="signature first" id="allow_debugging-class_method">
  
    + (<tt>Object</tt>) <strong>allow_debugging</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute allow_debugging</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id allow_debugging'>allow_debugging</span>
  <span class='ivar'>@allow_debugging</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="compress_assets-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="compress_assets-class_method">
  
    + (<tt>Object</tt>) <strong>compress_assets</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute compress_assets</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id compress_assets'>compress_assets</span>
  <span class='ivar'>@compress_assets</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="compressor_options-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="compressor_options-class_method">
  
    + (<tt>Object</tt>) <strong>compressor_options</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute compressor_options</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id compressor_options'>compressor_options</span>
  <span class='ivar'>@compressor_options</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="compressors=-class_method"></span>
      <span id="compressors-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="compressors-class_method">
  
    + (<tt>Object</tt>) <strong>compressors</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute compressors</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


56
57
58</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 56</span>

<span class='kw'>def</span> <span class='id compressors'>compressors</span>
  <span class='ivar'>@compressors</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="config_path-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="config_path-class_method">
  
    + (<tt>Object</tt>) <strong>config_path</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute config_path</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id config_path'>config_path</span>
  <span class='ivar'>@config_path</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="configuration-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="configuration-class_method">
  
    + (<tt>Object</tt>) <strong>configuration</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute configuration</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id configuration'>configuration</span>
  <span class='ivar'>@configuration</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="css_compressor_options-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="css_compressor_options-class_method">
  
    + (<tt>Object</tt>) <strong>css_compressor_options</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute css_compressor_options</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id css_compressor_options'>css_compressor_options</span>
  <span class='ivar'>@css_compressor_options</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="embed_assets-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="embed_assets-class_method">
  
    + (<tt>Object</tt>) <strong>embed_assets</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute embed_assets</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id embed_assets'>embed_assets</span>
  <span class='ivar'>@embed_assets</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="gzip_assets-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="gzip_assets-class_method">
  
    + (<tt>Object</tt>) <strong>gzip_assets</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute gzip_assets</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id gzip_assets'>gzip_assets</span>
  <span class='ivar'>@gzip_assets</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="include_jst_script-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="include_jst_script-class_method">
  
    + (<tt>Object</tt>) <strong>include_jst_script</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute include_jst_script</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id include_jst_script'>include_jst_script</span>
  <span class='ivar'>@include_jst_script</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="javascript_compressor-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="javascript_compressor-class_method">
  
    + (<tt>Object</tt>) <strong>javascript_compressor</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute javascript_compressor</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id javascript_compressor'>javascript_compressor</span>
  <span class='ivar'>@javascript_compressor</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="mhtml_enabled-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="mhtml_enabled-class_method">
  
    + (<tt>Object</tt>) <strong>mhtml_enabled</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute mhtml_enabled</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id mhtml_enabled'>mhtml_enabled</span>
  <span class='ivar'>@mhtml_enabled</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="package_assets-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="package_assets-class_method">
  
    + (<tt>Object</tt>) <strong>package_assets</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute package_assets</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id package_assets'>package_assets</span>
  <span class='ivar'>@package_assets</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="package_path-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="package_path-class_method">
  
    + (<tt>Object</tt>) <strong>package_path</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute package_path</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id package_path'>package_path</span>
  <span class='ivar'>@package_path</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="public_root-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="public_root-class_method">
  
    + (<tt>Object</tt>) <strong>public_root</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute public_root</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id public_root'>public_root</span>
  <span class='ivar'>@public_root</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="template_extension-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="template_extension-class_method">
  
    + (<tt>Object</tt>) <strong>template_extension</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute template_extension</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id template_extension'>template_extension</span>
  <span class='ivar'>@template_extension</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="template_extension_matcher-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="template_extension_matcher-class_method">
  
    + (<tt>Object</tt>) <strong>template_extension_matcher</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute template_extension_matcher</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id template_extension_matcher'>template_extension_matcher</span>
  <span class='ivar'>@template_extension_matcher</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="template_function-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="template_function-class_method">
  
    + (<tt>Object</tt>) <strong>template_function</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute template_function</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id template_function'>template_function</span>
  <span class='ivar'>@template_function</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="template_namespace-class_method"></span>
      <div class="method_details ">
  <p class="signature " id="template_namespace-class_method">
  
    + (<tt>Object</tt>) <strong>template_namespace</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute template_namespace</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 50</span>

<span class='kw'>def</span> <span class='id template_namespace'>template_namespace</span>
  <span class='ivar'>@template_namespace</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="class_method_details" class="method_details_list">
    <h2>Class Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="asset_url-class_method">
  
    + (<tt>Object</tt>) <strong>asset_url</strong>(package, extension, suffix = nil, mtime = nil) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Generates the server-absolute <span class="caps">URL</span> to an asset package.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


119
120
121
122</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 119</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id asset_url'>asset_url</span><span class='lparen'>(</span><span class='id package'>package</span><span class='comma'>,</span> <span class='id extension'>extension</span><span class='comma'>,</span> <span class='id suffix'>suffix</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id mtime'>mtime</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
  <span class='id timestamp'>timestamp</span> <span class='op'>=</span> <span class='id mtime'>mtime</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>?</span><span class='embexpr_beg'>#{</span><span class='id mtime'>mtime</span><span class='period'>.</span><span class='id to_i'>to_i</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id package_path'>package_path</span><span class='rbrace'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id filename'>filename</span><span class='lparen'>(</span><span class='id package'>package</span><span class='comma'>,</span> <span class='id extension'>extension</span><span class='comma'>,</span> <span class='id suffix'>suffix</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='embexpr_beg'>#{</span><span class='id timestamp'>timestamp</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="check_for_deprecations-class_method">
  
    + (<tt>Object</tt>) <strong>check_for_deprecations</strong>  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Ram 0.5+ no longer supports separate template packages.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


199
200
201
202
203</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 199</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id check_for_deprecations'>check_for_deprecations</span>
  <span class='kw'>if</span> <span class='ivar'>@configuration</span><span class='lbracket'>[</span><span class='symbol'>:templates</span><span class='rbracket'>]</span>
    <span class='id raise'>raise</span> <span class='const'>DeprecationError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Ram 0.5+ no longer supports separate packages for templates.\nPlease fold your templates into the appropriate 'javascripts' package instead.</span><span class='tstring_end'>&quot;</span></span>
  <span class='kw'>end</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="check_java_version-class_method">
  
    + (<tt>Object</tt>) <strong>check_java_version</strong>  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The <span class="caps">YUI</span> Compressor requires Java &gt; 1.4, and Closure requires Java &gt; 1.6.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


180
181
182
183
184
185
186
187
188
189</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 180</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id check_java_version'>check_java_version</span>
  <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='ivar'>@checked_java_version</span>
  <span class='id java'>java</span> <span class='op'>=</span> <span class='ivar'>@compressor_options</span><span class='lbracket'>[</span><span class='symbol'>:java</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
  <span class='ivar'>@css_compressor_options</span><span class='lbracket'>[</span><span class='symbol'>:java</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='id java'>java</span> <span class='kw'>if</span> <span class='ivar'>@compressor_options</span><span class='lbracket'>[</span><span class='symbol'>:java</span><span class='rbracket'>]</span>
  <span class='id version'>version</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='backtick'>`</span><span class='embexpr_beg'>#{</span><span class='id java'>java</span><span class='rbrace'>}</span><span class='tstring_content'> -version 2&gt;&amp;1</span><span class='tstring_end'>`</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\d+\.\d+</span><span class='regexp_end'>/</span></span><span class='rbracket'>]</span>
  <span class='id disable_compression'>disable_compression</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id version'>version</span> <span class='op'>||</span>
    <span class='lparen'>(</span><span class='ivar'>@javascript_compressor</span> <span class='op'>==</span> <span class='symbol'>:closure</span> <span class='op'>&amp;&amp;</span> <span class='id version'>version</span> <span class='op'>&lt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.6</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>||</span>
    <span class='lparen'>(</span><span class='ivar'>@javascript_compressor</span> <span class='op'>==</span> <span class='symbol'>:yui</span> <span class='op'>&amp;&amp;</span> <span class='id version'>version</span> <span class='op'>&lt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.4</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
  <span class='ivar'>@checked_java_version</span> <span class='op'>=</span> <span class='kw'>true</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="disable_compression-class_method">
  
    + (<tt>Object</tt>) <strong>disable_compression</strong>  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>If we don&#8217;t have a working Java VM, then disable asset compression and
complain loudly.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


193
194
195
196</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 193</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id disable_compression'>disable_compression</span>
  <span class='ivar'>@compress_assets</span> <span class='op'>=</span> <span class='kw'>false</span>
  <span class='id warn'>warn</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Asset compression disabled -- Java unavailable.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="filename-class_method">
  
    + (<tt>Object</tt>) <strong>filename</strong>(package, extension, suffix = nil) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Generate the base filename for a version of a given package.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


113
114
115
116</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 113</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id filename'>filename</span><span class='lparen'>(</span><span class='id package'>package</span><span class='comma'>,</span> <span class='id extension'>extension</span><span class='comma'>,</span> <span class='id suffix'>suffix</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
  <span class='id suffix_part'>suffix_part</span>  <span class='op'>=</span> <span class='id suffix'>suffix</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-</span><span class='embexpr_beg'>#{</span><span class='id suffix'>suffix</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id package'>package</span><span class='rbrace'>}</span><span class='embexpr_beg'>#{</span><span class='id suffix_part'>suffix_part</span><span class='rbrace'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='id extension'>extension</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="load_configuration-class_method">
  
    + (<tt>Object</tt>) <strong>load_configuration</strong>(config_path, soft = false) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Load the complete asset configuration from the specified <code>config_path</code>.
If we&#8217;re loading softly, don&#8217;t let missing configuration error out.</p>

  </div>
</div>
<div class="tags">
  
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
      
        <span class='type'>(<tt><span class='object_link'><a href="Ram/MissingConfiguration.html" title="Ram::MissingConfiguration (class)">MissingConfiguration</a></span></tt>)</span>
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 67</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id load_configuration'>load_configuration</span><span class='lparen'>(</span><span class='id config_path'>config_path</span><span class='comma'>,</span> <span class='id soft'>soft</span><span class='op'>=</span><span class='kw'>false</span><span class='rparen'>)</span>
  <span class='id exists'>exists</span> <span class='op'>=</span> <span class='id config_path'>config_path</span> <span class='op'>&amp;&amp;</span> <span class='const'>File</span><span class='period'>.</span><span class='id exists?'>exists?</span><span class='lparen'>(</span><span class='id config_path'>config_path</span><span class='rparen'>)</span>
  <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id soft'>soft</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id exists'>exists</span>
  <span class='id raise'>raise</span> <span class='const'>MissingConfiguration</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>could not find the \&quot;</span><span class='embexpr_beg'>#{</span><span class='id config_path'>config_path</span><span class='rbrace'>}</span><span class='tstring_content'>\&quot; configuration file</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id exists'>exists</span>
  <span class='id conf'>conf</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id load'>load</span><span class='lparen'>(</span><span class='const'>ERB</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id read'>read</span><span class='lparen'>(</span><span class='id config_path'>config_path</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id result'>result</span><span class='rparen'>)</span>

  <span class='comment'># Optionally overwrite configuration based on the environment.
</span>  <span class='id rails_env'>rails_env</span> <span class='op'>=</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>Rails</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='const'>Rails</span><span class='period'>.</span><span class='id env'>env</span> <span class='op'>:</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RAILS_ENV</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
  <span class='id conf'>conf</span><span class='period'>.</span><span class='id merge!'>merge!</span> <span class='id conf'>conf</span><span class='period'>.</span><span class='id delete'>delete</span> <span class='id rails_env'>rails_env</span> <span class='kw'>if</span> <span class='id conf'>conf</span><span class='period'>.</span><span class='id has_key?'>has_key?</span> <span class='id rails_env'>rails_env</span>

  <span class='ivar'>@config_path</span>            <span class='op'>=</span> <span class='id config_path'>config_path</span>
  <span class='ivar'>@configuration</span>          <span class='op'>=</span> <span class='id symbolize_keys'>symbolize_keys</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='rparen'>)</span>
  <span class='ivar'>@package_path</span>           <span class='op'>=</span> <span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:package_path</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>DEFAULT_PACKAGE_PATH</span>
  <span class='ivar'>@embed_assets</span>           <span class='op'>=</span> <span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:embed_assets</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:embed_images</span><span class='rbracket'>]</span>
  <span class='ivar'>@compress_assets</span>        <span class='op'>=</span> <span class='op'>!</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:compress_assets</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>false</span><span class='rparen'>)</span>
  <span class='ivar'>@gzip_assets</span>            <span class='op'>=</span> <span class='op'>!</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:gzip_assets</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>false</span><span class='rparen'>)</span>
  <span class='ivar'>@allow_debugging</span>        <span class='op'>=</span> <span class='op'>!</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:allow_debugging</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>false</span><span class='rparen'>)</span>
  <span class='ivar'>@mhtml_enabled</span>          <span class='op'>=</span> <span class='ivar'>@embed_assets</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@embed_assets</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>datauri</span><span class='tstring_end'>&quot;</span></span>
  <span class='ivar'>@compressor_options</span>     <span class='op'>=</span> <span class='id symbolize_keys'>symbolize_keys</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:compressor_options</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
  <span class='ivar'>@css_compressor_options</span> <span class='op'>=</span> <span class='id symbolize_keys'>symbolize_keys</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:css_compressor_options</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
  <span class='id set_javascript_compressor'>set_javascript_compressor</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:javascript_compressor</span><span class='rbracket'>]</span><span class='rparen'>)</span>
  <span class='id set_package_assets'>set_package_assets</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:package_assets</span><span class='rbracket'>]</span><span class='rparen'>)</span>
  <span class='id set_template_function'>set_template_function</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:template_function</span><span class='rbracket'>]</span><span class='rparen'>)</span>
  <span class='id set_template_namespace'>set_template_namespace</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:template_namespace</span><span class='rbracket'>]</span><span class='rparen'>)</span>
  <span class='id set_template_extension'>set_template_extension</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:template_extension</span><span class='rbracket'>]</span><span class='rparen'>)</span>
  <span class='id set_public_root'>set_public_root</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:public_root</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:public_root</span><span class='rbracket'>]</span>
  <span class='id symbolize_keys'>symbolize_keys</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:stylesheets</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:stylesheets</span><span class='rbracket'>]</span>
  <span class='id symbolize_keys'>symbolize_keys</span><span class='lparen'>(</span><span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:javascripts</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id conf'>conf</span><span class='lbracket'>[</span><span class='symbol'>:javascripts</span><span class='rbracket'>]</span>
  <span class='id check_for_deprecations'>check_for_deprecations</span>
  <span class='kw'>self</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="package!-class_method">
  
    + (<tt>Object</tt>) <strong>package!</strong>(options = {}) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Convenience method for packaging up Ram, using the default options.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


125
126
127
128
129
130
131
132
133
134
135
136
137
138</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 125</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id package!'>package!</span><span class='lparen'>(</span><span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
  <span class='id options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
    <span class='symbol'>:config_path</span>    <span class='op'>=&gt;</span> <span class='const'>Ram</span><span class='op'>::</span><span class='const'>DEFAULT_CONFIG_PATH</span><span class='comma'>,</span>
    <span class='symbol'>:output_folder</span>  <span class='op'>=&gt;</span> <span class='kw'>nil</span><span class='comma'>,</span>
    <span class='symbol'>:base_url</span>       <span class='op'>=&gt;</span> <span class='kw'>nil</span><span class='comma'>,</span>
    <span class='symbol'>:public_root</span>    <span class='op'>=&gt;</span> <span class='kw'>nil</span><span class='comma'>,</span>
    <span class='symbol'>:force</span>          <span class='op'>=&gt;</span> <span class='kw'>false</span>
  <span class='rbrace'>}</span><span class='period'>.</span><span class='id merge'>merge</span><span class='lparen'>(</span><span class='id options'>options</span><span class='rparen'>)</span>
  <span class='id load_configuration'>load_configuration</span><span class='lparen'>(</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:config_path</span><span class='rbracket'>]</span><span class='rparen'>)</span>
  <span class='id set_public_root'>set_public_root</span><span class='lparen'>(</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:public_root</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:public_root</span><span class='rbracket'>]</span>
  <span class='id packager'>packager</span><span class='period'>.</span><span class='id force'>force</span>         <span class='op'>=</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:force</span><span class='rbracket'>]</span>
  <span class='id packager'>packager</span><span class='period'>.</span><span class='id package_names'>package_names</span> <span class='op'>=</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:package_names</span><span class='rbracket'>]</span>
  <span class='id packager'>packager</span><span class='period'>.</span><span class='id precache_all'>precache_all</span><span class='lparen'>(</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:output_folder</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:base_url</span><span class='rbracket'>]</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="packager-class_method">
  
    + (<tt>Object</tt>) <strong>packager</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Keep a global (thread-local) reference to a <code>Ram::Packager</code>, to avoid
recomputing asset lists unnecessarily.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


108
109
110</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 108</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id packager'>packager</span>
  <span class='const'>Thread</span><span class='period'>.</span><span class='id current'>current</span><span class='lbracket'>[</span><span class='symbol'>:ram_packager</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='const'>Packager</span><span class='period'>.</span><span class='id new'>new</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="reload!-class_method">
  
    + (<tt>Object</tt>) <strong>reload!</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Force a reload by resetting the Packager and reloading the configuration.
In development, this will be called as a before_filter before every request.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


101
102
103
104</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 101</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id reload!'>reload!</span>
  <span class='const'>Thread</span><span class='period'>.</span><span class='id current'>current</span><span class='lbracket'>[</span><span class='symbol'>:ram_packager</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>nil</span>
  <span class='id load_configuration'>load_configuration</span><span class='lparen'>(</span><span class='ivar'>@config_path</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_javascript_compressor-class_method">
  
    + (<tt>Object</tt>) <strong>set_javascript_compressor</strong>(value)  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Ensure that the JavaScript compressor is a valid choice.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


149
150
151
152</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 149</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id set_javascript_compressor'>set_javascript_compressor</span><span class='lparen'>(</span><span class='id value'>value</span><span class='rparen'>)</span>
  <span class='id value'>value</span> <span class='op'>=</span> <span class='id value'>value</span> <span class='op'>&amp;&amp;</span> <span class='id value'>value</span><span class='period'>.</span><span class='id to_sym'>to_sym</span>
  <span class='ivar'>@javascript_compressor</span> <span class='op'>=</span> <span class='id compressors'>compressors</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='id value'>value</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id value'>value</span> <span class='op'>:</span> <span class='const'>DEFAULT_COMPRESSOR</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_package_assets-class_method">
  
    + (<tt>Object</tt>) <strong>set_package_assets</strong>(value)  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Turn asset packaging on or off, depending on configuration and environment.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


155
156
157
158
159</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 155</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id set_package_assets'>set_package_assets</span><span class='lparen'>(</span><span class='id value'>value</span><span class='rparen'>)</span>
  <span class='id package_env'>package_env</span>     <span class='op'>=</span> <span class='op'>!</span><span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>Rails</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='op'>!</span><span class='const'>Rails</span><span class='period'>.</span><span class='id env'>env</span><span class='period'>.</span><span class='id development?'>development?</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='const'>Rails</span><span class='period'>.</span><span class='id env'>env</span><span class='period'>.</span><span class='id test?'>test?</span><span class='rparen'>)</span>
  <span class='ivar'>@package_assets</span> <span class='op'>=</span> <span class='id value'>value</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>||</span> <span class='id value'>value</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='op'>?</span> <span class='id package_env'>package_env</span> <span class='op'>:</span>
                    <span class='id value'>value</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>always</span><span class='tstring_end'>'</span></span>           <span class='op'>?</span> <span class='kw'>true</span> <span class='op'>:</span> <span class='kw'>false</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_public_root-class_method">
  
    + (<tt>Object</tt>) <strong>set_public_root</strong>(public_root = nil)  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Allows command-line definition of `PUBLIC_ROOT`, for those using Ram
outside of Rails.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


144
145
146</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 144</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id set_public_root'>set_public_root</span><span class='lparen'>(</span><span class='id public_root'>public_root</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
  <span class='ivar'>@public_root</span> <span class='op'>=</span> <span class='id public_root'>public_root</span> <span class='kw'>if</span> <span class='id public_root'>public_root</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_template_extension-class_method">
  
    + (<tt>Object</tt>) <strong>set_template_extension</strong>(value)  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Set the extension for JS templates.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


174
175
176
177</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 174</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id set_template_extension'>set_template_extension</span><span class='lparen'>(</span><span class='id value'>value</span><span class='rparen'>)</span>
  <span class='ivar'>@template_extension</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id value'>value</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>||</span> <span class='id value'>value</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='op'>?</span> <span class='const'>DEFAULT_JST_EXTENSION</span> <span class='op'>:</span> <span class='id value'>value</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='rparen'>)</span><span class='period'>.</span><span class='id gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\A\.?(.*)\Z</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>\1</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
  <span class='ivar'>@template_extension_matcher</span> <span class='op'>=</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\.</span><span class='embexpr_beg'>#{</span><span class='const'>Regexp</span><span class='period'>.</span><span class='id escape'>escape</span><span class='lparen'>(</span><span class='ivar'>@template_extension</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>\Z</span><span class='regexp_end'>/</span></span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_template_function-class_method">
  
    + (<tt>Object</tt>) <strong>set_template_function</strong>(value)  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Assign the <span class="caps">JST</span> template function, unless explicitly turned off.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


162
163
164
165
166</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 162</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id set_template_function'>set_template_function</span><span class='lparen'>(</span><span class='id value'>value</span><span class='rparen'>)</span>
  <span class='ivar'>@template_function</span> <span class='op'>=</span> <span class='id value'>value</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>||</span> <span class='id value'>value</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='op'>?</span> <span class='const'>DEFAULT_JST_COMPILER</span> <span class='op'>:</span>
                       <span class='id value'>value</span> <span class='op'>==</span> <span class='kw'>false</span>              <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span> <span class='op'>:</span> <span class='id value'>value</span>
  <span class='ivar'>@include_jst_script</span> <span class='op'>=</span> <span class='ivar'>@template_function</span> <span class='op'>==</span> <span class='const'>DEFAULT_JST_COMPILER</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_template_namespace-class_method">
  
    + (<tt>Object</tt>) <strong>set_template_namespace</strong>(value)  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Set the root JS object in which to stash all compiled <span class="caps">JST</span>.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


169
170
171</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 169</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id set_template_namespace'>set_template_namespace</span><span class='lparen'>(</span><span class='id value'>value</span><span class='rparen'>)</span>
  <span class='ivar'>@template_namespace</span> <span class='op'>=</span> <span class='id value'>value</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>||</span> <span class='id value'>value</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='op'>?</span> <span class='const'>DEFAULT_JST_NAMESPACE</span> <span class='op'>:</span> <span class='id value'>value</span><span class='period'>.</span><span class='id to_s'>to_s</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="symbolize_keys-class_method">
  
    + (<tt>Object</tt>) <strong>symbolize_keys</strong>(hash)  <span class="extras">(private)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Clone of active_support&#8217;s symbolize_keys, so that we don&#8217;t have to depend
on active_support in any fashion. Converts a hash&#8217;s keys to all symbols.</p>

  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


212
213
214
215
216
217</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 212</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id symbolize_keys'>symbolize_keys</span><span class='lparen'>(</span><span class='id hash'>hash</span><span class='rparen'>)</span>
  <span class='id hash'>hash</span><span class='period'>.</span><span class='id keys'>keys</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id key'>key</span><span class='op'>|</span>
    <span class='id hash'>hash</span><span class='lbracket'>[</span><span class='lparen'>(</span><span class='id key'>key</span><span class='period'>.</span><span class='id to_sym'>to_sym</span> <span class='kw'>rescue</span> <span class='id key'>key</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id hash'>hash</span><span class='period'>.</span><span class='id delete'>delete</span><span class='lparen'>(</span><span class='id key'>key</span><span class='rparen'>)</span>
  <span class='kw'>end</span>
  <span class='id hash'>hash</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="warn-class_method">
  
    + (<tt>Object</tt>) <strong>warn</strong>(message)  <span class="extras">(private)</span>
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


205
206
207
208</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/jammit.rb', line 205</span>

<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id warn'>warn</span><span class='lparen'>(</span><span class='id message'>message</span><span class='rparen'>)</span>
  <span class='id message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Ram Warning: </span><span class='embexpr_beg'>#{</span><span class='id message'>message</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
  <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id puts'>puts</span> <span class='id message'>message</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Mon Oct 24 22:09:16 2011 by 
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
  0.7.3 (ruby-1.9.2).
</div>

  </body>
</html>